//
// Created by 86186 on 2021/12/8.
//

#include "DecodeResource.h"

DecodeResource::DecodeResource() {
    avFormatContext = avformat_alloc_context();
}

DecodeResource::~DecodeResource() {
    if (avFormatContext != NULL) {
        avformat_free_context(avFormatContext); //Free an AVFormatContext and all its streams.
    }
    if (avCodec != NULL) {

    }
    if (avCodecContext != NULL) {

    }
}